local shebian = fk.CreateSkill {

  name = "joyex__shebian",

  tags = {  },

}



shebian:addEffect(fk.TurnedOver, {
  name = "joyex__shebian",
  events = { fk.TurnedOver },
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(shebian.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local to = room:askForChooseToMoveCardInBoard(player, "#joyex__shebian-choose", shebian.name, true, "e")
    if #to == 2 then
      room:askForMoveCardInBoard(player, room:getPlayerById(to[1]), room:getPlayerById(to[2]), shebian.name, "e")
      if not player.dead and player:isWounded() then
        room:recover({
          who = player,
          num = 1,
          recoverBy = player,
          skillName = shebian.name
          })
      end
    end
  end,
})

return shebian